package reflect;


@MyAnnotation(value = "hi")
public class Person extends Creature<String> implements Comparable<String>,MyInterface {

    private String name;
    int age;
    public int id;

    public Person() {}

    @MyAnnotation(value = "abc")
    public Person(String name) {
        this.name = name;
    }

    public Person(String name, int age) {
        this.name = name;
        this.age = age;
    }

    @Override
    public int compareTo(String o) {
        return 0;
    }

    @Override
    public void info() {
        System.out.println("我是一个人");
    }

    @MyAnnotation
    private String show(String nation) throws Exception {
        return "我的国籍："+nation;
    }

    public String display(String a) {
        return a;
    }
}
